package com.linuxgt.pattern.decorator.scheme1;

public class SparrowDecorator extends Decorator {
    public final int DISTANCE = 50;

    public SparrowDecorator(Bird bird) {
        super(bird);
    }

    @Override
    public int fly() {
        int distance = 0;
        distance = bird.fly() + eleFly();
        return distance;
    }

    public int eleFly() {
        return DISTANCE;
    }
}
